import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        name: 'home',
        path: '/home',
        component: () => import('../views/home/index.vue')
    },
    {
        name: 'report',
        path: '/report/:id',
        component: () => import('../views/about/report.vue')
    },
    {
        name: 'coder',
        path: '/coder/:id',
        component: () => import('../views/about/coder.vue')
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router